Skip to content

Add C function to read token file #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LiamPattinson
Copy link
Contributor

Adds the function fdp_read_token that gets the registry token from a file. It's a simple utility, but I had to implement it from scratch in the Fortran API, and exposing it in the C API means that any future changes to the C++/C methods will be automatically carried forward to Fortran or anything else that hooks into the C API.

Also applies clang-format to some older code -- not sure how this was missed the first time around.

@LiamPattinson
Copy link
Contributor Author

For the failing tests:

  • The C simple model was trying to use the branch c_api, which has since been merged. I've corrected this now.
  • The code analysis is complaining about the use of a C function strncpy. It looks about as safe as I can make it.
  • No idea why the Windows build is failing. I can't find anything in the log that indicates where the error is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant